/*Code to generate seo friendly url */
/*
jQuery('#url_name').blur(function() {
    var hashtag = jQuery('#url_hashtag').val();
    hashtag = jQuery.trim(hashtag);
    if (hashtag === "") {
        var meetingName = jQuery('#url_name').val();
        meetingName = jQuery.trim(meetingName);
        meetingName = meetingName.replace(/[^\w\s]/gi, '');
        meetingName = meetingName.toLowerCase();
        hashTagName = meetingName.replace(/[\s]/gi, '-');
        jQuery('#url_hashtag').val(hashTagName);
        jQuery('#url_askpage_url').val(SITE_URL + "ask-question/" + hashTagName);
        jQuery('#url_presentatioin_url').val(SITE_URL + "presentation/" + hashTagName);
    } else {
        return false;
    }

});

*/
jQuery('#url_hashtag').blur(function() {
    var hashtag = jQuery('#url_hashtag').val();
    hashtag = jQuery.trim(hashtag);
    hashtag = hashtag.replace(/[^\w\s]/gi, '');
    hashtag = hashtag.toLowerCase();
    hashtag = hashtag.replace(/[\s]/gi, '-');

    jQuery('#url_hashtag').val(hashtag);

    jQuery('#url_askpage_url').val(SITE_URL + "ask-question/" + hashtag);
    jQuery('#url_presentatioin_url').val(SITE_URL + "presentation/" + hashtag);
});
